<template>
	<view class="container">
		<view class="flex justify-between solid-bottom line-black">
			<view class="margin">
				<view class="text-lg text-black">
					可提现金额:
				</view>
				<view class="text-price text-red margin-top">
					{{userInfo.balance||0}}元
				</view>
			</view>
			<view class="margin-right margin-top">
				<button class="cu-btn round  bg-red" @click="navTo('cash')">提现</button>
			</view>
		</view>
		
		<view class="bg-white padding">
			<view class="grid col-3 grid-square">
				<view class="text-center" @click="navTo('team')">
					<view class="cu-avatar radius margin-left lg">
						<image src="../../static/group.png" class="cu-avatar"></image>
					</view>
					<view class="text-lg margin-left margin-top-sm">
						分销团队
					</view>
				</view>
				<view class="text-center" @click="navTo('haibao')">
					<view class="cu-avatar radius margin-left lg" >
						<image src="../../static/Posterous.png" class="cu-avatar"></image>
					</view>
					<view class="text-lg margin-left margin-top-sm">
						分销海报
					</view>
				</view>
				<view class="text-center" @click="navTo('bill')">
					<view class="cu-avatar radius margin-left lg">
						<image src="../../static/bill.png" class="cu-avatar"></image>
					</view>
					<view class="text-lg margin-left margin-top-sm">
						账单明细
					</view>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default{
		data() {
			return {
			}
		},
		methods:{
			navTo:function(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style>
	page{
		background: #FFFFFF;
	}
	.image {
		width: 50upx;
		height: 50upx;
	}
	.example-body {
		border-top: 1px #f5f5f5 solid;
		padding: 30upx;
		background: #fff
	}
</style>
